package com.dingtalk.h5app.quickstart.service;


import com.dingtalk.h5app.quickstart.dao.ProcessModuleJpaRepository;
import com.dingtalk.h5app.quickstart.domain.entity.ProcessModuleVoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Optional;

@Service
@Transactional
public class ProcessModuleService {
    @Autowired
    private ProcessModuleJpaRepository processModuleJpaRepository;

    public void save(ProcessModuleVoEntity processModuleVoEntity){
        processModuleJpaRepository.save(processModuleVoEntity);
    }
    public void saveAll(List<ProcessModuleVoEntity> list){
        processModuleJpaRepository.saveAll(list);
    }

}
